@*Hdip Project 2013-14, Student Name:- Chris Pembroke,  Student Number:- x00115839*@
@model IEnumerable<Exercise1Project.Models.BikeService>

@{
    ViewBag.Title = "AdminSearchResults";
}

<div class="viewContainerDiv1">

    <h2>AdminSearchResults</h2>

    <h4>@Html.ActionLink("Back to Searches", "AdminSearches")</h4>

    <p>
        @ViewBag.Error
    </p>
    <table class="table">
        <tr>

            <th>
                @Html.DisplayNameFor(model => model.StatusService)
            </th>
            <th>
                @Html.DisplayNameFor(model => model.StatusBikeInShop)
            </th>
            <th>
                @Html.DisplayNameFor(model => model.Date)
            </th>
            <th>
                @Html.DisplayNameFor(model => model.QuotedPrice)
            </th>
            <th>
                @Html.DisplayNameFor(model => model.TotalPrice)
            </th>
            <th>
                @Html.DisplayNameFor(model => model.BikeID)
            </th>
            <th></th>
        </tr>

        @foreach (var item in Model)
        {
            <tr>

                <td>
                    @Html.DisplayFor(modelItem => item.StatusService)
                </td>
                <td>
                    @Html.DisplayFor(modelItem => item.StatusBikeInShop)
                </td>
                <td>
                    @Html.DisplayFor(modelItem => item.Date)
                </td>
                <td>
                    @Html.DisplayFor(modelItem => item.QuotedPrice)
                </td>
                <td>
                    @Html.DisplayFor(modelItem => item.TotalPrice)
                </td>
                <td>
                    @Html.DisplayFor(modelItem => item.BikeID)
                </td>
                <td>
                    @Html.ActionLink("Edit", "AdminEdit", new { id = item.ServiceID }) |
                    @Html.ActionLink("Details", "AdminDetails", new { id = item.ServiceID }) |
                    @Html.ActionLink("Email Customer", "EmailCustomer", new { id = item.ServiceID })
                </td>
            </tr>
        }

    </table>

    <h4>@Html.ActionLink("Back to Searches", "AdminSearches")</h4>

</div>

@section Scripts {
    @Scripts.Render("~/bundles/jqueryval")
    <link rel="stylesheet" href="@Url.Content("~/Content/customised.css")" />
}
    

    
